package at.fhooe.mc.master.clc.server.domain.objectify;

import com.googlecode.objectify.annotation.Embed;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;
import com.googlecode.objectify.annotation.Unindex;

import at.fhooe.mc.master.clc.server.domain.IEmbeddedEntity;

@Embed
@Index
public class EmbeddedObjectifyEntity implements IEmbeddedEntity
{
	private String stringField;
	@Unindex private double doubleField;
	
	public EmbeddedObjectifyEntity() {}
	
	public EmbeddedObjectifyEntity(boolean generate)
	{
		if (generate)
		{
			this.stringField = "embedded_string_field";
			this.doubleField = 42.42;
		}
	}

	@Override
	public String getStringField()
	{
		return stringField;
	}
	
	@Override
	public double getDoubleField()
	{
		return doubleField;
	}
	
}
